package com.freewater.springboot.demo.aop.instmode;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;

@Aspect
public class Aspect1 {

    @Pointcut("execution(* com.freewater.springboot.demo.aop.instmode.SomeBusiness+.*(..))")
    public void someBusiness() {

    }

    @Before(value = "someBusiness() && args(data)")
    public void beforeAdvice(String data) {
        System.out.println(this + ", before advice, data: " + data);
    }
}
